majuscule = 0
lowercase = 0
space = 0
num = 0
other = 0
print("输入一串字符串")
str = input()
for i in str:
    if i.isalpha():
        if i >= 'a' and i <= 'z':
            lowercase += 1
        elif i >= 'A' and i <= 'Z':
            majuscule += 1
    elif i.isspace():
        space += 1
    elif i.isdigit():
        num += 1
    else:
        other += 1
print("大写字母的个数为:", majuscule)
print("小写字母的个数为:", lowercase)
print("空格的个数为:", space)
print("数字的个数为:", num)
print("其他字符的个数为:", other)
